package com.qf.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.chat.entity.FriendRelation;
import com.qf.chat.entity.vo.FriendVo;

import java.util.List;

/**
 * 好友关系(FriendRelation)表服务接口
 *
 * @author makejava
 * @since 2024-01-12 10:46:26
 */
public interface FriendRelationService extends IService<FriendRelation> {

    /**
     * 判断两个用户id是否为好友关系
     * @param uid
     * @param fid
     * @return
     */
    boolean isFriendRelation(Integer uid, Integer fid);

    int addFriendRelation(Integer uid, Integer fid, String beizhu1, String beizhu2);

    List<FriendVo> queryMyFriends();
}

